import request from '@/utils/request'

// 新增
export function addthirdparty (data) {
  return request({
    method: 'post',
    data,
    url: '/back/thirdparty'
  })
}
// id查询
export function getthirdparty (params) {
    return request({
      method: 'get',
      params,
      url: '/back/thirdparty'
    })
}

// 修改
export function updatethirdparty (data) {
    return request({
      method: 'post',
      data,
      url: '/back/thirdparty/update'
    })
  }

// 删除
export function deletethirdparty (params) {
    return request({
      method: 'get',
      params,
      url: '/back/thirdparty/delete'
    })
}

// 分页查询
export function getlist (data) {
    return request({
      method: 'post',
      data,
      url: `/back/thirdparty/list?pageNum=${data.pageNum}&pageSize=${data.pageSize}`
    })
}